﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Edit.aspx.cs" Inherits="admin_house_sale_Edit" %>

<%= StyleInclude("style.css") %>

<div class="frombox datagrid-body" style="padding-bottom: 5px;">
    <form id="sale-model" method="post">
        <table class="datagrid-btable" border="0" cellspacing="0" cellpadding="0" width="100%">
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">房源標題</div>
                </td>
                <td class="td" colspan="8">
                    <div class="datagrid-cell">
                        <input name="Name" class="easyui-textbox" data-options="required:true" style="width: 715px;" value="<%= model.Name %>" />
                    </div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="IsVisible" type="checkbox" <%= model.IsVisible.HasValue ? (model.IsVisible.Value ? "checked" : "") : "" %> />可見
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">單價</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Price" class="easyui-textbox" style="width: 110px;" value="<%= model.Price %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">面積</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Area" class="easyui-textbox" style="width: 110px;" value="<%= model.Area %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">總價</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="TotalPrice" class="easyui-textbox" style="width: 110px;" value="<%= model.TotalPrice %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">朝向</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Toward" class="easyui-textbox" style="width: 110px;" value="<%= model.Toward %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">戶型</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="HouseHold" class="easyui-textbox" style="width: 110px;" value="<%= model.HouseHold %>" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">樓層</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Floor" class="easyui-textbox" style="width: 110px;" value="<%= model.Floor %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">房屋特性</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="HouseChar" class="easyui-textbox" style="width: 110px;" value="<%= model.HouseChar %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">裝修</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Decorate" class="easyui-textbox" style="width: 110px;" value="<%= model.Decorate %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">狀態</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="HouseStatus" class="easyui-textbox" style="width: 110px;" value="<%= model.HouseStatus %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">年代</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="HouseYear" class="easyui-textbox" style="width: 110px;" value="<%= model.HouseYear %>" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">區域</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Region" class="easyui-textbox" style="width: 110px;" value="<%= model.Region %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">聯繫人</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Contact" class="easyui-textbox" style="width: 110px;" value="<%= model.Contact %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">電話</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Tel" class="easyui-textbox" style="width: 110px;" value="<%= model.Tel %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">地址</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Address" class="easyui-textbox" style="width: 110px;" value="<%= model.Address %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">配套</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Support" class="easyui-textbox" style="width: 110px;" value="<%= model.Support %>" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">房源圖片</div>
                </td>
                <td class="td" colspan="9">
                    <div class="datagrid-cell">
                        <div id="sale-imgbox" class="sale-imgbox fn-clear">
                            <%= SaleImgs(model.ID) %>
                        </div>
                        <div>
                            <%= ToolButton("icon-graphy", "上传图片", "Sale.Upload")
                            + ToolButton("icon-chartline", "批量上传", "Sale.Batch")
                            + ToolButton("icon-pictures", "设置封面", "Sale.Front")
                            + ToolButton("icon-left", "图片前移", "Sale.ImgPrev")
                            + ToolButton("icon-right", "图片后移", "Sale.ImgNext")
                            + ToolButton("icon-no", "删除图片", "Sale.ImgDelete")
                            + ToolButton("icon-cancel", "全部删除", "Sale.ImgClear") %>
                        </div>
                        <input id="sale-images" name="Images" type="hidden" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="text" colspan="10">
                    <div class="datagrid-cell">
                        <textarea id="sale-content" name="Content"><%= model.Content %></textarea>
                    </div>
                </td>
            </tr>
        </table>
        <input name="ID" type="hidden" value="<%= model.ID %>" />
        <input name="InsertTime" type="hidden" value="<%= model.InsertTime %>" />
        <input name="UpdateTime" type="hidden" value="<%= model.UpdateTime %>" />
    </form>
</div>
